package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.QuestionEntity;
import yf.mall.vo.QuestionVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
/**
 * 问题表Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Dec 15 13:15:22 CST 2020
 */
@Mapper
public interface QuestionDao extends BaseDao<QuestionEntity> {

    List<QuestionVo> findVo(QuestionVo vo);

    QuestionVo getVo(Long id);

    List<QuestionEntity> queryByGoodsId(@Param("goodsId") Long goodsId,@Param("status")Integer status);

    Integer totalQuestion(Long goodsId);

    List<QuestionEntity> questionMe(Long userId);

    List<QuestionEntity> myQuestion(Long userId);

    void deleteByQuesIdBatch(Long[] id);
}
